/**
 * @description 用户管理 接口
 * */
import request from "@/utils/request";
import qs from "qs";


/**
 * @description 新增接口
 */
export function addUser(data = {}, params = {}) {
    return request({
        url: "/user/add",
        method: "POST",
        data: qs.stringify(data),
        params,
    });
}

/**
 * @description 编辑接口
 */
export function updataUser(data = {}, params = {}) {
    return request({
        url: "/user/edit",
        method: "POST",
        data: qs.stringify(data),
        params,
    });
}

/**
 * @description 删除接口
 */
//   username
export function delUser(data = {}, params = {}) {
    return request({
        url: "/user/remove",
        method: "POST",
        data,
        params,
    });
}

/**
 * @description 列表接口
 * */
export function listUser(data = {}, params = {}) {
    return request({
        url: "/user",
        method: "GET",
        data,
        params,
    });
}

/**
 * @description 单查接口
 * */
export function findUser(data = {}, params = {}) {
    return request({
        url: "/user/page/edit",
        method: "GET",
        data,
        params,
    });
}